package org.codeart.status.example03;

public class RedState implements State {

    @Override
    public void switchToGreen(TrafficLight light) {
        System.out.println("绿灯亮起, 时长: 60s");
    }

    @Override
    public void switchToYellow(TrafficLight light) {
        System.out.println("红灯不能切换为黄灯");
    }

    @Override
    public void switchToRed(TrafficLight light) {
        System.out.println("当前是红灯, 无需切换");
    }
}
